import { S } from '../../s';
import { PSEditorImpl } from '../pseditor-impl';
import { IPSRaw } from './ipsraw';

export class PSRawImpl extends PSEditorImpl implements IPSRaw {
  get contentType(): string {
    return this.M.contentType || 'RAW';
  }

  get template(): string {
    return this.M.template;
  }

  get editable(): boolean {
    return this.M.editable != null ? this.M.editable : false;
  }
  get cls(): string {
    return 'PSRawImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._38a) return true;
    return super.instanceof(cls);
  }
}
